package com.example.design.observer;

public class ObserverTest {
	public static void maina(String[] args) {
		AllyControllerCenter acc = new ConcreteAllyControllerCenter("jt&jd");
		Observer playerA = new Player("aa");
		acc.join(playerA);
		Observer playerB = new Player("bb");
		acc.join(playerB);
		Observer playerC = new Player("cc");
		acc.join(playerC);
		Observer playerD = new Player("dd");
		acc.join(playerD);
		
		playerB.beAttaked(acc);
	}
}
